import request from '/@/utils/request';

// 分页
export const pageList = (data: any) => {
	return request({
		url: '/invert/interfaceService/getInterfaceServicesPageList',
		method: 'post',
		data,
	});
};


// 详情 
export const getDetails = (params: any) => {
	return request({
		url: '/invert/interfaceService/getInterfaceServInfoByInterfaceId',
		method: 'get',
		params,
	});
};

// 创建
export const addInterface = (data: any) => {
	return request({
		url: '/invert/interfaceService/createInterfaceServices',
		method: 'post',
		data,
	});
};


//查询文件数据源 
export const getAllBizSourceUrl = () => {
	return request({
		url: '/invert/source/url/getAllBizSourceUrl',
		method: 'get',
	});
};

// 修改服务状态 
export const updateInterface = (data: any) => {
	return request({
		url: '/invert/interfaceService/updateServicesStatus',
		method: 'post',
		data,
	});
};

// 删除 
export function delInterface(data: any) {
	return request({
		url: '/invert/interfaceService/deleteInterfaceServByInterfaceId',
		method: 'post',
        data,
	});
}
